/*
* @Author: chenggh
* @Date: 2025-06-18
* @Link to Problem : https://oj.haizeix.com/problem/184
*/
#include <iostream>
using namespace std;
int main(){
	int n; cin >> n;
	int ans = 1;
	for(int i = 1; i < n; i++){
		ans = ans + 1;
		ans *= 2;
	}cout << ans << endl;
	return 0;
}